Skip to main content

screenName

Type

function

Summary

Returns the name of the current screen.

Syntax

the screenName
screenName()

Description

Use the screenName function to control where applications that LiveCode starts up should appear.

On Unix systems, the screenName function returns the string provided by the XDisplayName function call. When starting a process with the open process command or the shell function, if you want the process to appear on the same screen as LiveCode, use the value returned by the screenName as the argument to the -d option.

This function does not return a useful value on Mac OS and Windows systems.

Examples

the screenName
put "myApp -d" && the screenName into commandLine

command: open process

control structure: function

function: shell, value, screenVendor

glossary: function call, argument, return, command, process

keyword: string

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?